package com.greenet.companytemplate.manager.service;

import com.greenet.companytemplate.base.service.CrudService;
import com.greenet.companytemplate.manager.dao.FileDao;
import com.greenet.companytemplate.manager.entity.FileBean;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Administrator on 2016/5/4.
 */
@Component
public class FileService extends CrudService<FileDao,FileBean> {
    /**
     * 获得最近更新的文件，默认是一周
     * @param fileBean
     * @return
     */
    public List<FileBean> getRecently(FileBean fileBean){
        return dao.getRecently(fileBean);
    }
}
